<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html:html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title></title>
		<script type="text/javascript">
		<!--
		    function checkInputMatch(a,b,word){           
		      var valueA = a.value;
		      var valueB = b.value;
		      if(valueA!=valueB){
		          alert(word);
		          a.value = "";
		          b.value = "";
		          a.focus();
		          return false;	
		      }
		     }
		//-->
		</script>

	</head>
	<body>
	<table width="98%" border="0" cellspacing="0" cellpadding="10">
		
		<!-- html:javascript formName="modifyPwdForm"/-->
		<html:form method="POST" action="/admin/modifyOperatorPwd" onsubmit="//return validateModifyPwdForm(this);">
		  <tr>
			<td width="55%" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="10">
              <tr>
                <td class="font_tit">修改密码 Modify PassWord</td>
              </tr>
		      <logic:messagesPresent message="true">   
		        <tr><td><font color=red >
	            	<html:messages id="message" message="true">
	             		<bean:write name="message"/>
	            	</html:messages>
	            </font></td></tr>
		        </logic:messagesPresent> 

              <tr>
                <td><strong>旧密码</strong> Old Password<br>
                	<html:password property="oldPwd" size="30" maxlength="30" tabindex="2" ></html:password>
                </td>
              </tr>
              <tr>
                <td><strong>新密码</strong> New Password<br>
                	<html:password property="newPwd" size="30" maxlength="30" tabindex="2" ></html:password>
                </td>
              </tr>
              <tr>
                <td><strong>再次输入新密码</strong> New Password Again<br>
                	<html:password property="confirmPwd" size="30" maxlength="30" tabindex="2" onblur="javascript:checkInputMatch( document.getElementById('newPwd'),this,'确认密码与密码不符')"></html:password>
                </td>
              </tr>

              <tr>
                <td><html:submit value="修改密码"/><html:reset value="重置表格"/></td>
              </tr>
              </html:form>
            </table></td>
			<td width="45%" align="right" valign="top"></td>
		  </tr>
	</table>
	
	</body>
</html:html>
